<?php

function starts_with($haystack, $needle){
    return strpos($haystack, $needle) === 0;
}